package com.yuanfengerp.SalesOrder.dao;

import com.yuanfengerp.SalesOrder.model.NewOrders;
import com.yuanfengerp.basicInfoManage.paymode.moudel.PayMethodInfo;
import com.yuanfengerp.goodsInfoManage.model.ProductManagement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
@Mapper
public interface INewOrdersDao {
    //通过模糊查询查询商品信息
    ArrayList<ProductManagement> getProductManagement(@Param("warehouse_name") String warehouse_name, @Param("pmName") String pmName);
    //修改商品的折扣，价格，销售数量，备注
    int updateProductManagement(ProductManagement productManagement);
    //新增销售订单中商品的数量及金额
    int insertNewOrders(NewOrders newOrders);
    //查询支付方式
    ArrayList<PayMethodInfo> getPayMethodInfo();
}
